package com.zbf.设计模式1.原型模式;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author: LI-CI-GAO
 * 作者: licigao
 * 日期: 2021/8/23  10:05
 * 描述:
 */
public class TestYuanXin {

    public static void main(String[] args) throws CloneNotSupportedException, IOException, ClassNotFoundException {

        List<Map<String,List<Map<String,Object>>>> list=new ArrayList<>();

        SourceTarget sourceTarget=new SourceTarget();
        sourceTarget.setList(list);

      /*  SourceTarget sourceTarget1 = sourceTarget.clone1();
        System.out.println(sourceTarget.getList()==sourceTarget1.getList());*/

        SourceTarget sourceTarget1 = sourceTarget.deepClone();
        System.out.println(sourceTarget1.getList()==sourceTarget.getList());
    }

}
